/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package foalvleditor.core.impl;

/**
 *
 * @author Mikael
 */
public class AppSettingsModel {

    private boolean snapToGrid=true;
    private boolean snapToObjects=true;
    private boolean showGrid=false;

    private static AppSettingsModel instance=new AppSettingsModel();

    public static AppSettingsModel getInstance() {
        return instance;
    }

    public boolean isGridShown(){
        return this.showGrid;
    }

    public void setGridShown(boolean show){
        this.showGrid=show;
    }

    public boolean isSnappingToGrid(){
        return snapToGrid;
    }

    public boolean isSnappingToObjects(){
        return snapToObjects;
    }

    public void snapToGrid(boolean yesno){
        this.snapToGrid=yesno;
    }

    public void snapToObjects(boolean yesno){
        this.snapToObjects=yesno;
    }

 }


